package com.hmall.model;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

@Data
@Table(name = "mall_cart")
public class MallCart {
    @Id
    private Integer id;

    @Column(name = "user_id")
    private Integer userId;

    /**
     * 商品id
     */
    @Column(name = "product_id")
    private Integer productId;

    /**
     * 重量,单位为千克
     */
    private BigDecimal weight;

    /**
     * 数量
     */
    private String grade;

    /**
     * 是否选择,1=已勾选,0=未勾选
     */
    private Integer checked;

    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;

    @Column(name = "memberToken")
    private String membertoken;

    /**
     * 是否付款，已付款：1，未付款：9 
     */
    private Integer status;

    /**
     * 店铺id
     */
    @Column(name = "shop_id")
    private Integer shopId;

}